package org.healthy.service;

import org.healthy.model.page.Pagination;
import org.healthy.model.user.Paper;

import java.util.List;

/**
 * Created by qingshengzheng on 17/10/11.
 */
public interface IPaperService {

    /**
     * 根据试卷id 获取试卷
     *
     * @param id
     * @return
     */
    public Paper getPaperByid(String id);

    /**
     * 收藏试卷
     */
    public void collectPaper(Long uid, String pid);

    /**
     * 搜索试卷
     *
     * @param keyword
     * @return
     */
    public List<Paper> searchPapersByKeywords(String keyword);


    /**
     * 搜索试卷
     */
    public List<Paper> searchPaper(Paper paper);

    /**
     * 获取我收藏的试卷
     */
    public List<Paper> getCollectPaper(Long uid, Pagination<Paper> page);


    /**
     * 获取试卷的title
     */
    public String getPaperTitle(String pid);

    /**
     * 获取推荐的试卷
     */
    public List<Paper> getRmdPapers(Long uid, Pagination<Paper> papers);


}
